dataSource {
 pooled = true
 driverClassName = "com.mysql.jdbc.Driver"
 dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
 username = "root"
 password = "root"
}
hibernate {
 cache.use_second_level_cache = true
 cache.use_query_cache = false
 cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
 development {
  dataSource {
   dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
   url = "jdbc:mysql://127.0.0.1/company"
  }
 }
 test {
  dataSource {
   dbCreate = "update"
   url = "jdbc:mysql://127.0.0.1/company"
  }
 }
 production {
  dataSource {
   dbCreate = "update"
   url = "jdbc:mysql://127.0.0.1/company"
  }
 }
}